import request from '@/utils/request'

// 查询维修申请列表
export function listProjectRequest(query) {
  return request({
    url: '/house/projectRequest/list',
    method: 'get',
    params: query
  })
}

// 获取小区信息
export function getAreaInfo() {
  return request({
    url: '/house/area/list1',
    method: 'get'
  })
}

// 获取维修内容
export function getProjectInfoId() {
  return request({
    url: '/repair/projectInfo/list',
    method: 'get'
  })
}

// 获取社区
export function getCommunityId() {
  return request({
    url: '/other/community/list',
    method: 'get'
  })
}

export function housePass(batchIds) {
  return request({
    url: '/house/projectRequest/housePass/'+batchIds,
    method: 'get'
  })
}

export function houseRefuse(batchIds) {
  return request({
    url: '/house/projectRequest/houseRefuse/'+batchIds,
    method: 'get'
  })
}

